﻿#ifndef _AudioDac_h_
#define _AudioDac_h_

#include <stdint.h>
#include "SDL.h" 
//#include "SDL_audio.h" 

#define _in_
#define _out_
#define _in_out_


#define AUDIO_DAC_SAMPLING_RATE   44100
#define AUDIO_DAC_BUFFER_SIZE     512


class AudioDac_t
{

	public:
		void (*QueryFrameCallBack)( _out_ void * context, _out_ int16_t* pData, _in_ uint16_t bytesCnt );


	public:
		void Init( void );
		

	private:
		static void RequestFrameCallBack( void *context, uint8_t *audioStream, int length );
	
	private:
		SDL_AudioSpec   m_AudioSpec;
		
};

#endif